package com.mc.algorithm;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Scanner;

public class RandomNumber {
	public static void execute(){
		Scanner sc = new Scanner(System.in);
		HashSet<Integer> hs = new HashSet<Integer>();
		int num = sc.nextInt();
		for(int i=0;i<num;i++){
			hs.add(sc.nextInt());
		}
		
		Object[] array = hs.toArray(); 
		Arrays.sort(array);
		for(int j=0;j<array.length;j++)
			System.out.println(array[j]);
	}
	public static void main(String[] args) {
		RandomNumber.execute();
	}
}
